#include "CMainWindow.h"
#include "titlebar.h"

CMainWindow::CMainWindow(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);
	OnInitDialog();
}

CMainWindow::~CMainWindow()
{
}

void CMainWindow::OnInitDialog()
{
	setWindowFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint);
	auto _title_bar = new TitleBar(this);
	ui.verticalLayout_main->insertWidget(0, _title_bar);
}
